import request from '@/utils/request'

/**
 * 新增或更新企业物流配置-上门费用
 * @param data
 */
export function saveHomeFee(data) {
  return request({
    url: '/user/enterpriseExpressHomeFee/save',
    method: 'post',
    data
  })
}

/**
 * 删除企业物流配置-上门费用
 * @param data
 */
export function deleteHomeFee(homeFeeId) {
  return request({
    url: '/user/enterpriseExpressHomeFee/delete',
    method: 'post',
    params: { homeFeeId }
  })
}

// 列表查询
export function listHomeFee(query) {
  return request({
    url: '/user/enterpriseExpressHomeFee/list',
    method: 'get',
    params: query
  })
}
